import request from '@/utils/request';
/**
 * 示例值：202209 时间为年月，默认当前月份
 * @param {*} params
 * @returns
 */
// 业务规模及完成情况
export function GetUnderwriting(params) {
  return request({
    url: 'hermes/index/underwriting',
    method: 'get',
    params,
  });
}
// 本年度中间业务总收入及历史应收
export function GetIncome(params) {
  return request({
    url: 'hermes/index/income',
    method: 'get',
    params,
  });
}
// 包销业务概况
export function GetDistrib(params) {
  return request({
    url: 'hermes/index/distrib',
    method: 'get',
    params,
  });
}

// 其他页面债券品种查询
export function GetBondvarietylist(params) {
  return request({
    url: 'hermes/bond/variety/list',
    method: 'get',
    params,
  });
}
// 首页债券类型查询
export function GetBondtypelist(params) {
  return request({
    url: 'hermes/bond/type/list',
    method: 'get',
    params,
  });
}

// 首页业务品种交易量
export function getQuantity(params) {
  return request({
    url: '/hermes/manageCockpit/getQuantity',
    method: 'get',
    params,
  });
}

// 首页业务品种交易频次
export function getFrequencies(params) {
  return request({
    url: 'hermes/manageCockpit/getFrequencies',
    method: 'get',
    params,
  });
}

export function keyEvent(params) {
  return request({
    url: 'hermes/cockpit/keyEvent',
    method: 'get',
    params,
  });
}

export function titleIndicators(params) {
  return request({
    url: 'hermes/cockpit/titleIndicators',
    method: 'get',
    params,
  });
}

export function queryBondNum(params) {
  return request({
    url: 'hermes/cockpit/queryBondNum',
    method: 'get',
    params,
  });
}

export function queryTradeAmount(params) {
  return request({
    url: 'hermes/cockpit/queryTradeAmount',
    method: 'get',
    params,
  });
}

export function riskJson() {
  return request({
    url: '/risk.json',
    method: 'get',
  });
}

export function targetValue(params) {
  return request({
    url: 'hermes/cockpit/targetValue',
    method: 'get',
    params,
  });
}

export function riskDistribution(params) {
  return request({
    url: 'hermes/cockpit/riskDistribution',
    method: 'get',
    params,
  });
}
export function getCustNumByRegion(params) {
  return request({
    url: 'hermes/manageCockpit/getCustNumByRegion',
    method: 'get',
    params,
  });
}

export function getContent() {
  return request({
    url: 'main.json',
    method: 'get',
  });
}
export function baseInfo(params) {
  return request({
    url: 'hermes/customer/baseInfo/query',
    method: 'get',
    params,
  });
}

export function getCreditSubType(params) {
  return request({
    url: 'hermes/customer/credit/getCreditSubType',
    method: 'get',
    params,
  });
}
export function getCreditTop(params) {
  return request({
    url: 'hermes/manageCockpit/getCreditTop',
    method: 'get',
    params,
  });
}
export function getEntityByProperty(params) {
  return request({
    url: 'hermes/manageCockpit/getEntityByProperty',
    method: 'get',
    params,
  });
}
export function batchDate(params) {
  return request({
    url: 'hermes/common/batchDate',
    method: 'get',
    params,
  });
}
